<link rel="stylesheet" type="text/css" href="<?=base_url()?>templates/css/tintuc.css" />
<div news_id="bannertop"><? echo modules::run('banner/banner/top');?></div>
<!------ sp ------->
<div class="tintuc"> 
    <!------ sp-left -------->
    <div class="tintuc-left">
        <?php
		$k=1;
		foreach($list as $row)
		{
			$lb_image = $row->lb_image? '<img src="'.url.'uploads/news/'.$row->lb_image.'" width="150" height="100" />' : '';
		?>
			<div class="item">
				<?=$lb_image?>
				<div class="item-content">
                    <h2 class="item-title"><a href="<?=site.'tintuc/detail/'.$row->news_id.'/'.kodau($row->name).'.html'?>"><?php echo $row->name?> </a></h2>
					<?=truncate($row->content,400)?>
				</div>
			</div>
		<?php }?>
    </div>
    <!---end sp-left -----> 
    <!------ sp-right --------->
    <div class="tintuc-right">
        <?php echo modules::run('banner/banner/right');?>
    </div>
    <!---- end sp-right------>
    <div class="clear"></div>
</div>
<!--- end sp -----> 
<script type="text/javascript">
$(document).ready(function(){
	$("#frmcontacts_tintuc").valnews_idate({
        rules: {
            cusmail: {
				required:true,
				email:true
			},
			nonews_idung:"required",
        },
        messages: {
			cusmail: {
				required:"Vui lòng nhập nội dung email.",
				email:"Email không đúng định dạng."
			},
			nonews_idung: "Vui lòng nhập nội dung câu hỏi vào.",
			//lb_image:{valnews_idateImage:"File ảnh không hợp lệ!",}
        }
    });

});
</script>